<?php
namespace app\common\error;

class Base
{
    public static $success             = [RESULT_CODE => 200,   RESULT_MESSAGE => 'OK',RESULT_SUCCESS => true];#请求成功

    public static $CreateSuccess       = [RESULT_CODE => 201,   RESULT_MESSAGE => 'Create Success',RESULT_SUCCESS => true];#post 或者put时候返回

    public static $AcceptedSuccess     = [RESULT_CODE => 202,   RESULT_MESSAGE => 'Accepted Success',RESULT_SUCCESS => true];#请求已接受，进入队列

    public static $NoClient    		   = [RESULT_CODE => 204,   RESULT_MESSAGE => 'No Content',RESULT_SUCCESS => true];#没有实体内容

    public static $BadRequest          = [RESULT_CODE => 400,   RESULT_MESSAGE => 'Bad Request',RESULT_SUCCESS => false];#错误的请求

    public static $Unauthorized        = [RESULT_CODE => 401,   RESULT_MESSAGE => 'Unauthorized',RESULT_SUCCESS => false];#用户未授权，请求失败

    public static $Forbidden           = [RESULT_CODE => 403,   RESULT_MESSAGE => 'Forbidden',RESULT_SUCCESS => false];#没有权限

    public static $NotFound            = [RESULT_CODE => 404,   RESULT_MESSAGE => 'Not Found',RESULT_SUCCESS => false];#服务器找不到请求的资源

    public static $MethodNotAllowed    = [RESULT_CODE => 405,   RESULT_MESSAGE => 'Method Not Allowed',RESULT_SUCCESS => false];#请求方法不被允许

    public static $WrongRequestParam   = [RESULT_CODE => 406,   RESULT_MESSAGE => 'Wrong Request Param',RESULT_SUCCESS => false];#请求格式错误

    public static $NotFoundResouce   = [RESULT_CODE => 410,   RESULT_MESSAGE => 'Not Found Resouce',RESULT_SUCCESS => false];#资源被永久删除

    public static $ServerInternalError = [RESULT_CODE => 500,   RESULT_MESSAGE => 'Server Internal Error',RESULT_SUCCESS => false];

    public static $UnknownHttpStatusCode = [RESULT_CODE => 501,   RESULT_MESSAGE => 'Unknown Http Status Code',RESULT_SUCCESS => false];#未知的错


}
